﻿using System.Runtime.Serialization;
using EzDesk.Core.Model;

namespace EzDesk.Apps.Model.Attendance
{
    
    [DataContract]
    public enum ApplyState
    {
        /// <summary>
        /// 正在申请
        /// </summary>
        [EnumMember]
        Applying,

        /// <summary>
        /// 已处理
        /// </summary>
        [EnumMember]
        Done,
    }

    public partial class EvaluationModifyApplication
    {
        [DataMember]
        public SimpleUser ApplyUser { get; set; }

        [DataMember]
        public ApplyState State
        {
            get { return (ApplyState)StateValue; }
            set { StateValue = (int) value; }
        }
    }
}